package com.gthncz.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import com.gthncz.beans.HelloWorld;

@Configuration
public class HelloWorldConfig {
	private static final String TAG = HelloWorldConfig.class.getSimpleName();
	
	public HelloWorldConfig() {
		System.out.println( TAG + " run on constructor. ");
	}
	
	@Bean
	public HelloWorld helloWorld() {
		System.out.println( TAG + " run on helloWorld. ");
		return new HelloWorld();
	}
	
}
